package com.pay.Essearch.controller;

import com.pay.Essearch.service.EsearchService;
import com.pay.Essearch.vo.EsSearchVo;
import com.pay.common.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/esearch/esearch")
public class EsearchControler {


    @Autowired
    private EsearchService esearchService;

    /**
     * @description 查询es
     * @params []
     * @return com.pay.common.utils.Result
     * @author 杰
     * @date 2025/8/8 15:11
     */
    @PostMapping("/queryEsGoods")
    public Result queryEsGoods(@RequestBody EsSearchVo esSearchVo) {
        return esearchService.queryEsGoods(esSearchVo);
    }
}
